package com.qfjy.homework.guozijian;

/**
 * @author: gzj
 * @date: 2022/11/10  19:19
 * @version: 1.0
 **/
public class MediatorPatternDemo {

    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John!");
        john.sendMessage("Hello! Robert!");
    }
}
